package com.example.synchost5.entity;

import lombok.Getter;

import java.util.Map;

@SuppressWarnings("unused")
public class ResponseData {

    private final ResponseStatusEnum statusEnum;

    private int code;
    public int getCode() {
        return statusEnum.getCode();
    }

    private String status;
    public String getStatus() {
        return statusEnum.getMessage();
    }

    @Getter
    private final Map<String, Object> errorMap;

    @Getter
    private final Map<String, Object> resultMap;

    public ResponseData(ResponseStatusEnum statusEnum, Map<String, Object> errorMap, Map<String, Object> resultMap) {
        this.statusEnum = statusEnum;
        this.errorMap = errorMap;
        this.resultMap = resultMap;
    }
}
